package com.book.service.impl;

import com.book.dao.BookPictureDao;
import com.book.entity.BookPictureEntity;
import com.book.service.BookPictureService;
import com.book.utils.PageUtils;
import com.book.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;


@Service("bookPictureService")
public class BookPictureServiceImpl extends ServiceImpl<BookPictureDao, BookPictureEntity> implements BookPictureService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<BookPictureEntity> page = this.page(
                new Query<BookPictureEntity>().getPage(params),
                new QueryWrapper<BookPictureEntity>()
        );

        return new PageUtils(page);
    }

}